/*
 * @Author: your name
 * @Date: 2021-08-24 10:46:12
 * @LastEditTime: 2021-09-08 09:34:12
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \bigdate\src\router\type.ts
 */

// 初始类型

export enum RoleEnum{
     SUPER='super',
     TEST='test'
}

export interface Menu{
     name:String,
     icon?:String,
     path:String,
     disable?:Boolean,
     children?:Menu[],
     roles?:RoleEnum[],
     mate?:any,
     hideMenu?:Boolean,
     component?:Function,
     redirect?:String,
     id?:string,
     preid?:String | any
}

export interface ContentMenu{
     name?:String,
     icon?:String,
     path:String,
     disable?:Boolean,
     children:Menu[],
     roles:RoleEnum[],
     mate?:any,
     hideMenu:Boolean,
     component?:Function,
     redirect?:String,
     id?:string,
     preid?:String | any
}

export interface NavgationTo{
      url:String
}

export interface UserDATA{
      userinfo:Object,
      token:String 
}

export type IconArr = {
     name:String
}
